package com.qingcloud.adminbackend.entity.stationequipment;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 监测点设备绑定记录表
 * </p>
 *
 * @author liyuhong
 * @since 2019-01-02
 */
@Data
public class OptStationEquipment implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 监测点ID
     */
    @ApiModelProperty(value = "监测点ID", example = "17001")
    @NotBlank(message = "监测点编号不能为空")
    private String stationId;

    /**
     * 设备编号
     */
    @ApiModelProperty(value = "设备编号", example = "1190100001")
    @NotBlank(message = "设备编号不能为空")
    private String equipmentId;

    /**
     * 绑定解绑状态,0=解绑，1=主设备绑定，2=次设备绑定
     */
    @ApiModelProperty(value = "绑定解绑状态,0=解绑，1=主设备绑定，2=次设备绑定", example = "1190100001")
    private Integer mountStatus;


    /**
     * 操作人
     */
    @ApiModelProperty(value = "操作人", example = "")
    private String operateBy;

    /**
     * 操作时间
     */
    @ApiModelProperty(value = "操作时间", example = "")
    private String operateTime;

    /**
     * 监测点状态
     */
    @ApiModelProperty(value = "监测点状态", example = "1")
    @NotNull(message = "监测点状态不能为空")
    private Integer stationStatus;

    private Integer isLast;

}
